package com.wootion.cims.general.enumtype;

import lombok.Getter;
import lombok.Setter;

/**
 * 系统配置
 */
public enum Security {
    PASSWORD_LOWER("passwordLower", "密码长度下限(字符数)"),
    PASSWORD_UPPER("passwordUpper", "密码长度上限(字符数)"),
    CHARACTER_COMBINATION("characterCombination", "字符组合(至少3项)"),
    PASSWORD_TIPS_CYCLE("passwordTipsCycle", "修改密码提示周期"),
    PASSWORD_TIPS_TYPE("passwordTipsType", "修改密码提示方式"),
    FEW_MINUTES("fewMinutes", "几分钟之内"),
    ERRORS_NUMBER("errorsNumber", "错误的次数"),
    UNLOCK_MINUTES("unlockMinutes", "几分钟后自动解锁");
    @Setter
    @Getter
    private String code;

    @Setter
    @Getter
    private String name;

    Security(String code, String name) {
        this.setCode(code);
        this.setName(name);
    }
}
